import { IsNotEmpty } from "class-validator";

export class CreateStarDto {
  @IsNotEmpty({
    message: '稿件id不能为空'
  })
  createId: number

  @IsNotEmpty({
    message: '收藏的用户id不能为空'
  })
  userId: number

  @IsNotEmpty({
    message: '稿件人id不能为空'
  })
  authorId: number

  @IsNotEmpty({
    message: '业务类型不能为空'
  })
  type: number

  ip?: string
}
